# 导包
import requests


# ihrm 登录  接口对象层
class ThrmLogin(object):
    # 登录 接口
    def login(self, req_data):
        resp = requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
                             headers={"Content-Type": "application/json"},
                             json=req_data)
        return resp


# boby = {"mobile": "13800000002",
#         "password": "123456"}
# login(boby)